<?php   // $Id: devis_modif_date.php 240 2008-07-14 15:46:35Z pcoustillas $ ?>
<?php
/*Copyright (C) 2008 Pierre Coustillas
Licensed under the terms of the GNU  General Public License:http://www.opensource.org/licenses/gpl-license.php
File Authors: Pierre Coustillas*/

require_once("include/verif.php");

require_once("include/config/common.php");
require_once("include/utils.php");


$num_devis=isset($_POST['num_devis'])?$_POST['num_devis']:"";
$date=isset($_POST['date'])?$_POST['date']:"";

$date=date_to_sql($date);


$sql_maj_devis="UPDATE ${tblpref}devis SET date='$date' WHERE num_dev=$num_devis";
mysql_query($sql_maj_devis) or die("Erreur SQL, mise à jour date devis !<br/>$sql_maj_devis<br/>" . mysql_error());
//echo $sql_maj_fact;

header("Location: devis_edit.php?num_devis=$num_devis");


?>